package org.uim.cricket.storage.deserialize.clean;

import org.uim.cricket.entities.inning.InningTotals;

public class NormalizeInningTotal {

	public void normalize(InningTotals totals) {
		if (totals.getMinutes() < 0) totals.setMinutes(0);
		if (totals.getRuns() < 0) totals.setRuns(0);
		if (totals.getWickets() < 0) totals.setWickets(0);
	}
	
}
